home *** CD-ROM | disk | FTP | other *** search
/ Inside Mac Games Volume 7 #5 / IMG Vol 7-5.iso / Demos / Harpoon3 Demo / Harpoon3 / Harpoon3.rsrc / TEXT_128.txt < prev    next >
Text File  |  1999-06-13  |  665b  |  3 lines

  1. Virtual base classes have special precedence and are constructed before any of their derived classes.  They are constructed before any non-virtual base classes.  Their construction order depends on their DAG.  It is a depth-first, left-to-right order.  Destructors are invoked in reverse order of constructors.  These rules, although complicated, generally conform to our intuition.
  2.  
  3. The old style of just using a parenthesized argument list that implicitly called the base class constructor is allowed for single inheritance, but it is poor style even for that case.  Finally, the associated destructors are called in the reverse order from constructor invocation.